<template>
  <div class="app-container">
    <el-tabs v-model="activeName" type="card" @tab-remove="removeTab">
      <el-tab-pane label="领用记录" name="1">
        <template v-if="activeName === '1'">
          <List></List>
        </template>
      </el-tab-pane>
      <el-tab-pane label="领用明细" name="2">
        <template v-if="activeName === '2'">
          <Related></Related>
        </template>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
export default {
  name: "loanreturn",
  // dicts: ['sys_notice_status', 'sys_notice_type'],
  components: {
    List: () => import('./list/index.vue'),//列表
    Related: () => import('./related/index.vue')//明细
  },
  data () {
    return {
      activeName: '1',
      tabIndex: false,
      rowObj: {}
    };
  },
  created () {
  },
  methods: {
    removeTab () {
      this.tabIndex = false
      this.activeName = '1'
    },
    // addTab(row){
    //   this.tabIndex = true
    //   this.activeName = '3'
    //   this.rowObj = row
    // }
  }
};
</script>
